package com.ibeeking.found.upms.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName GlobalRoleParam
 * @Description
 * @Author ibeeking
 * @Date 2020-12-02 15:29
 **/
@Data
public class CsRoleParam implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @NotNull(message = "Id不能为空", groups = {BaseValidationGroup.Update.class})
    private Long id;

    /**
     * 角色编码
     */
    //@NotBlank(message = "角色编码不能为空", groups = {BaseValidationGroup.Insert.class})
    private String code;

    /**
     * 角色名称
     */
    @NotBlank(message = "角色名称不能为空", groups = {BaseValidationGroup.Insert.class, BaseValidationGroup.Update.class})
    private String name;

    /**
     * 排序
     */
    //@NotNull(message = "排序不能为空", groups = {BaseValidationGroup.Insert.class, BaseValidationGroup.Update.class})
    private Integer sort;

    private String remark;
}
